using UnityEngine;

public class MyScreen
{
	public static bool isInit;

	public static float factor;

	public static float inverseFactor;

	public static PhoneType phoneType;

	public static int longSide;

	public static bool isSuperLowPhone;

	public static void init()
	{
		if (!isInit)
		{
			isInit = true;
			Global.isAndroid = (Application.platform == RuntimePlatform.Android);
			factor = (float)Screen.width * 480f / 800f / (float)Screen.height;
			inverseFactor = 1f / factor;
			longSide = ((Screen.width <= Screen.height) ? Screen.height : Screen.width);
			if (longSide < 800)
			{
				phoneType = PhoneType.LOW;
			}
			else if (longSide < 1024)
			{
				phoneType = PhoneType.MIDDLE;
			}
			else
			{
				phoneType = PhoneType.HIGH;
			}
			if (longSide <= 480)
			{
				isSuperLowPhone = true;
			}
			else
			{
				isSuperLowPhone = false;
			}
		}
	}
}
